package com.dhsc.controller.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.KsmxVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.xtqxgl.IKsmxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: KsmxController
 * @Description: 用户考试明细
 * @date: 2023/9/11 13:11
 * @author: gx
 */
@Controller
@RequestMapping("/xtqxgl")
public class KsmxController {

    @Autowired
    private IKsmxService ksmxService;

    /**
    * @Title: queryKsmx
    * @Description: 查询用户考试明细
    * @Param: ksmxVo
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2023/11/3 16:31
    */
    @ResponseBody
    @RequestMapping(value="/queryKsmx")
    public LayuiTableVo queryKsmx(KsmxVo ksmxVo){
        return ksmxService.queryKsmx(ksmxVo);
    }

    /**
     * @Title: queryRyxm
     * @Description: 查询人员姓名
     * @Param: ksmxVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/6 10:23
     */
    @ResponseBody
    @RequestMapping(value="/queryRyxm")
    public ResponseObject queryRyxm(KsmxVo ksmxVo){
        return ksmxService.queryRyxm(ksmxVo);
    }

    /**
     * @Title: saveKsmx
     * @Description: 保存用户考试明细
     * @Param: ksmxVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/6 10:23
     */
    @ResponseBody
    @RequestMapping(value="/saveKsmx")
    public ResponseObject saveKsmx(KsmxVo ksmxVo){
        return ksmxService.saveKsmx(ksmxVo);
    }

    /**
     * @Title: deleteKsmx
     * @Description: 删除考试明细
     * @Param: ksmxVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/6 13:33
     */
    @ResponseBody
    @RequestMapping(value="/deleteKsmx")
    public ResponseObject deleteKsmx(KsmxVo ksmxVo){
        return ksmxService.deleteKsmx(ksmxVo);
    }
}
